#ifndef XLABELSCROLL_H
#define XLABELSCROLL_H

#include "XSystem/XWidget.h"

class XLabelScroll : public XWidget
{
	public:
		XLabelScroll(XResourcesManager *data, int positionX, int positionY, int width, int height);
		void Draw();
		void CheckState(const sf::Input &input);
		void CheckEvent(const sf::Event &Event);

		void NewLine(std::string text, int color);

	protected:
		sf::String x_string;
		sf::String x_strings;

		std::vector<sf::Color> x_colorList;

		std::vector<std::string> x_texts;
		std::vector<int> x_colors;

		sf::Shape x_backgroundShape;

		int x_numberOfLines;
		int x_scroll;
};

#endif